
<include file="Public/ace_header" />
<div class="row">
    <div class="col-xs-12">
        <div class="row hidden-480 search">
            <form id="search-form">
                <div class="col-md-3 search-input-div">
                    <input type="text" class="col-md-12 search-input" name="searchMap[id]" id="id" value="{$_GET[searchMap][id]}" placeholder="ID"/>
                </div>
                <div class="col-md-3 search-input-div">
                    <input type="text" class="col-md-12 search-input" name="searchMap[name]" id="name" value="{$_GET[searchMap][name]}" placeholder="订单名称"/>
                </div>
                <div class="col-md-3 col-md-offset-3 center search-input-div">
                    <button type="submit" class="btn btn-success btn-xs">查询</button>
                    <button class="btn btn-warning btn-xs" type="button" href="#" onclick="clearFind()">清空</button>
                </div>
            </form>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th class="center">
                            <label>
                                <input type="checkbox" class="ace" id="checkall"/>
                                <span class="lbl"></span>
                            </label>
                        </th>
                    <th >ID</th>
                    <th >购买用户</th>
                    <th >导游</th>
                    <th >订单名称</th>
                    <th >开始日期</th>
                    <th >结束日期</th>
                    <th >价格</th>
                    <th >总价</th>
                    <th >用户姓名</th>
                    <th >用户电话</th>
                    <th >用户性别</th>
                    <th >用户补充合同</th>
                    <th >导游补充合同</th>
                    <th >行程详情</th>
                    <th >订单状态</th>
                    <th >游客合同签署情况</th>
                    <th >导游合同签署情况</th>
                    <th >创建时间</th>
                    <th >更新时间</th>
                    <th class="center">保险</th>
                        <th class="center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="vo">
                    <tr>
                        <td class="center">
                            <label>
                                <input type="checkbox" class="ace" name="chkid" value="{$vo['id']}"/>
                                <span class="lbl"></span>
                            </label>
                        </td>
                        <td >{$vo[id]}</td>
                        <td ><php> echo D("User")->find($vo["user_id"])["name"];</php></td>
                        <td >{$vo[guider_user_id]}</td>
                        <td >{$vo[name]}</td>
                        <td ><if condition="$vo[start_time] neq 0">{$vo[start_time]|default=''|date="Y-m-d",###}</if></td>
                        <td ><if condition="$vo[end_time] neq 0">{$vo[end_time]|default=''|date="Y-m-d",###}</if></td>
                        <td >{$vo[price]}</td>
                        <td >{$vo[amount]}</td>
                        <td >{$vo[user_name]}</td>
                        <td >{$vo[user_phone]}</td>
                        <td >{$vo[user_gender]}</td>
                        <td >{$vo[user_contract]|html_entity_decode}</td>
                        <td >{$vo[guider_contract]|html_entity_decode}</td>
                        <td >{$vo[content]|html_entity_decode}</td>
                        <td >{$vo[state]}</td>
                        <td >{$vo[user_contract_state]}</td>
                        <td >{$vo[guider_contract_state]}</td>
                        <td ><if condition="$vo[create_time] neq 0">{$vo[create_time]|default=''|date="Y-m-d H:i:s",###}</if></td>
                        <td ><if condition="$vo[update_time] neq 0">{$vo[update_time]|default=''|date="Y-m-d H:i:s",###}</if></td><td class="center"><a href="__MODULE__/InsuranceOrder/list?searchMap[order_type]=customized_guider&searchMap[order_id]={$vo['id']}">点击查看</a></td>
                            <td class="center">
                                <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
			<a href="__ROOT__/Home/Index/call/id1/231/id2/{$vo['user_id']}">
                <button class="btn btn-xs btn-success" style="border: 1px;">
                    <i class="icon-phone" style="margin-right: 0px;"></i>
                </button>
            </a>
            <a href="__MODULE__/ContractOrder/list?searchMap[order_id]]={$vo['id']}&searchMap[order_type]]=customized_guider">
                <button class="btn btn-xs btn-success" style="border: 1px;">
                    <i class="icon-file" style="margin-right: 0px;"></i>
                </button>
            </a>
                                    <a href="{:U(detail, ['id'=>$vo['id']])}">
                                        <button class="btn btn-xs btn-warning" style="border: 1px;">
                                            <i class="icon-search" style="margin-right: 0px;"></i>
                                        </button>
                                    </a>
                                    <a href="{:U(update, ['id'=>$vo['id']])}">
                                        <button class="btn btn-xs btn-info" style="border: 1px;">
                                            <i class="icon-edit" style="margin-right: 0px;"></i>
                                        </button>
                                    </a>
                                </div>
                                <div class="visible-xs visible-sm hidden-md hidden-lg">
                                    <div class="inline position-relative">
                                        <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
                                            <i class="icon-cog icon-only bigger-110"></i>
                                        </button>
                                        <ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
											<li>
                                                <a href="__ROOT__/Home/Index/call/id1/231/id2/{$vo['user_id']}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                    <span class="green">
                                                        <i class="icon-phone bigger-120"></i>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="{:U(detail, ['id'=>$vo['id']])}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                    <span class="yellow">
                                                        <i class="icon-search bigger-120"></i>
                                                    </span>
                                                </a>
                                            </li>
                                            <li>
                                                <a href="{:U(update, ['id'=>$vo['id']])}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                    <span class="green">
                                                        <i class="icon-edit bigger-120"></i>
                                                    </span>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </volist>
                </tbody>
            </table>
            {$page}
        </div><!-- /.table-responsive -->
    </div><!-- /span -->
</div><!-- /row -->
<include file="Public/ace_footer" />